x86/mm: New sharing audit memop
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Fri, 10 Feb 2012 16:07:07 +0000 (16:07 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Fri, 10 Feb 2012 16:07:07 +0000 (16:07 +0000)
commitc13b827e66a93b121b48bd1fa6db1a11e77031c9
treecee5e3f3edfb171d07544b8ea5a7a16f6604d7d4
parent59a36d66a5d50a66f8a629b334a0cbd7af360f80
x86/mm: New sharing audit memop

Remove costly mem_sharing audits from the inline path, and instead make them
callable as a memop.

Have the audit function return the number of errors detected.

Update memshrtool to be able to trigger audits.

Set sharing audits as enabled by default.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Signed-off-by: Adin Scannell <adin@scannell.ca>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Tim Deegan <tim@xen.org>
tools/libxc/xc_memshr.c
tools/libxc/xenctrl.h
tools/tests/mem-sharing/memshrtool.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/x86_64/compat/mm.c
xen/arch/x86/x86_64/mm.c
xen/include/asm-x86/mem_sharing.h
xen/include/public/memory.h